package com.lipl.base.javase.designpattern.decoartor.V1;

/**
 * @Auther: 15541
 * @Date: 2020/12/16 10:03
 * @Description:
 */
public class BattercakeWithEgg extends Battercake {

    @Override
    protected String getMsg() {
        return super.getMsg() + "1个鸡蛋";
    }

    @Override
    //加一个鸡蛋加1块钱
    public int price() {
        return super.price() + 1;
    }
}

